import S2C_SyncPositionScript from "./move/S2C_SyncPositionScript"

export default class MsgScriptManager{

    private id2Msg:Map<number,any> = new Map();

    private static  _instance = new MsgScriptManager()
    private constructor(){

    }

    public static get instance(){
        return MsgScriptManager._instance
    }

    getMsgScript(msgId:number){
        return this.id2Msg.get(msgId)
    }

    loadAllScripts(){
        this.id2Msg.set(1,S2C_SyncPositionScript)
    }
}